package scrumtaculous.service;

import java.util.List;

import scrumtaculous.domain.Iteration;
import scrumtaculous.domain.IterationDao;

public class IterationManagerImpl implements IterationManager
{

   private IterationDao iterationDao = null;

   public void setIterationDao(IterationDao iterationDaoIn)
   {
      this.iterationDao = iterationDaoIn;
   }

   @SuppressWarnings("unchecked")
   public List<Iteration> find()
   {
      return iterationDao.find();
   }

   @SuppressWarnings("unchecked")
   public List<Iteration> find(Iteration iteration)
   {
      return iterationDao.find(iteration);
   }

   public Iteration find(Integer id)
   {
      return (Iteration) iterationDao.findById(id);
   }

   public Iteration save(Iteration iteration)
   {
      return iterationDao.save(iteration);
   }
}
